Ext.require('Ext.chart.*');
Ext.require('Ext.data.*');
Ext.require('Ext.Window');
Ext.require('Ext.layout.container.Fit');
Ext.require('Ext.fx.target.Sprite');
Ext.require('Ext.window.MessageBox');

var jsonData = [
    {
        date: '1/1/2009',
        Ahmad: 44.8,
        Herman: 45.5,
        Mambang: 3.9,
        Jefri: 3,
        Rusli: 2.3,
        Golput: 0.5
    },
    {
        date: '2/1/2009',
        Ahmad: 43.6,
        Herman: 46.4,
        Mambang: 4,
        Jefri: 3,
        Rusli: 2.2,
        Golput: 0.8
    },
    {
        date: '3/1/2009',
        Ahmad: 43.3,
        Herman: 46.5,
        Mambang: 4.2,
        Jefri: 3.1,
        Rusli: 2.3,
        Golput: 0.6
    },
    {
        date: '4/1/2009',
        Ahmad: 42.1,
        Herman: 47.1,
        Mambang: 4.9,
        Jefri: 3,
        Rusli: 2.2,
        Golput: 0.7
    },
    {
        date: '5/1/2009',
        Ahmad: 41,
        Herman: 47.7,
        Mambang: 5.5,
        Jefri: 3,
        Rusli: 2.2,
        Golput: 0.6
    },
    {
        date: '6/1/2009',
        Ahmad: 40.7,
        Herman: 47.3,
        Mambang: 6,
        Jefri: 3.1,
        Rusli: 2.1,
        Golput: 0.8
    },
    {
        date: '7/1/2009',
        Ahmad: 39.4,
        Herman: 47.9,
        Mambang: 6.5,
        Jefri: 3.3,
        Rusli: 2.1,
        Golput: 0.8
    },
    {
        date: '8/1/2009',
        Ahmad: 39.3,
        Herman: 47.4,
        Mambang: 7,
        Jefri: 3.3,
        Rusli: 2.1,
        Golput: 0.9
    },
    {
        date: '9/1/2009',
        Ahmad: 39.6,
        Herman: 46.6,
        Mambang: 7.1,
        Jefri: 3.6,
        Rusli: 2.2,
        Golput: 0.9
    },
    {
        date: '10/1/2009',
        Ahmad: 37.5,
        Herman: 47.5,
        Mambang: 8,
        Jefri: 3.8,
        Rusli: 2.3,
        Golput: 0.9
    },
    {
        date: '11/1/2009',
        Ahmad: 37.7,
        Herman: 47,
        Mambang: 8.5,
        Jefri: 3.8,
        Rusli: 2.3,
        Golput: 0.7
    },
    {
        date: '12/1/2009',
        Ahmad: 37.2,
        Herman: 46.4,
        Mambang: 9.8,
        Jefri: 3.6,
        Rusli: 2.3,
        Golput: 0.7
    },
    {
        date: '1/1/2010',
        Ahmad: 36.2,
        Herman: 46.3,
        Mambang: 10.8,
        Jefri: 3.7,
        Rusli: 2.2,
        Golput: 0.8
    },
    {
        date: '2/1/2010',
        Ahmad: 35.3,
        Herman: 46.5,
        Mambang: 11.6,
        Jefri: 3.8,
        Rusli: 2.1,
        Golput: 0.7
    },
    {
        date: '3/1/2010',
        Ahmad: 34.9,
        Herman: 46.2,
        Mambang: 12.3,
        Jefri: 3.7,
        Rusli: 2.2,
        Golput: 0.7
    },
    {
        date: '4/1/2010',
        Ahmad: 33.4,
        Herman: 46.4,
        Mambang: 13.6,
        Jefri: 3.7,
        Rusli: 2.2,
        Golput: 0.7
    },
    {
        date: '5/1/2010',
        Ahmad: 32.2,
        Herman: 46.9,
        Mambang: 14.5,
        Jefri: 3.5,
        Rusli: 2.2,
        Golput: 0.7
    },
    {
        date: '6/1/2010',
        Ahmad: 31,
        Herman: 46.6,
        Mambang: 15.9,
        Jefri: 3.6,
        Rusli: 2.1,
        Golput: 0.8
    },
    {
        date: '7/1/2010',
        Ahmad: 30.4,
        Herman: 46.4,
        Mambang: 16.7,
        Jefri: 3.4,
        Rusli: 2.3,
        Golput: 0.8
    },
    {
        date: '8/1/2010',
        Ahmad: 30.7,
        Herman: 45.8,
        Mambang: 17,
        Jefri: 3.5,
        Rusli: 2.3,
        Golput: 0.7
    },
    {
        date: '9/1/2010',
        Ahmad: 31.1,
        Herman: 45.1,
        Mambang: 17.3,
        Jefri: 3.7,
        Rusli: 2.2,
        Golput: 0.6
    },
    {
        date: '10/1/2010',
        Ahmad: 29.7,
        Herman: 44.1,
        Mambang: 19.2,
        Jefri: 3.9,
        Rusli: 2.2,
        Golput: 0.9
    },
    {
        date: '11/1/2010',
        Ahmad: 28.6,
        Herman: 44,
        Mambang: 20.5,
        Jefri: 4.0,
        Rusli: 2.3,
        Golput: 0.6
    },
    {
        date: '12/1/2010',
        Ahmad: 27.5,
        Herman: 43.5,
        Mambang: 22.4,
        Jefri: 3.8,
        Rusli: 2.2,
        Golput: 0.6
    }
];

var fields = ['date', 'Ahmad', 'Mambang', 'Herman', 'Jefri', 'Rusli', 'Golput'];

